compareTo

@SinceKotoolsTypes(version = "1.3")
infix operator fun compareTo(other: Int): Int
@SinceKotoolsTypes(version = "1.3")
infix operator fun compareTo(other: NonZeroInt): Int
open infix operator override fun compareTo(other: PositiveInt): Int
@SinceKotoolsTypes(version = "1.3")
infix operator fun compareTo(other: StrictlyPositiveInt): Int

Compares this value with the other value for order. Returns 0 if this value equals the other value, a negative number if this value is less than the other value, or a positive number if this value is greater than the other value.


@SinceKotoolsTypes(version = "1.3")
infix operator fun compareTo(other: NegativeInt): Int

Compares this value with the other value for order. Returns 0 if this value equals the other value, or a positive number if this value is greater than the other value.


@SinceKotoolsTypes(version = "1.3")
infix operator fun compareTo(other: StrictlyNegativeInt): Int

Compares this value with the other value and returns a positive number for order.